/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const permissionsRouter = {
  path: '/permission',
  component: Layout,
  redirect: 'noredirect',
  name: 'PermissionModule',
  meta: {
    title: '权限管理',
    icon: 'component'
  },
  children: [
    {
      path: 'menu-list',
      component: () => import('@/views/permission/permissionList'),
      name: 'PermissionMenuList',
      meta: { title: '菜单管理' }
    },
    {
      path: 'group-list',
      component: () => import('@/views/permission/groupList'),
      name: 'PermissionGroupList',
      meta: { title: '分组管理' }
    },
    {
      path: 'bmsuser-list',
      component: () => import('@/views/permission/bmsuserList'),
      name: 'PermissionBMSUserList',
      meta: { title: '人员管理' }
    }
  ]
}

export default permissionsRouter
